package br.com.firula.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.firula.bo.ComentarioBO;
import br.com.firula.dao.ComentarioDAO;
import br.com.firula.to.ComentarioTO;

@SuppressWarnings("unchecked")
@Service("comentarioBO")
public class ComentarioBOImpl extends GenericBOImpl implements ComentarioBO {

    @Autowired
    public void setComentarioDAO(ComentarioDAO dao) {
        this.dao = dao;
    }

    public ComentarioBOImpl(){
    	setType("br.com.firula.to.ComentarioTO");
    }

    public ComentarioTO getComentarioById(String id) {
    	return (ComentarioTO)get(id);
    }
}